<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@page import="java.util.Iterator"%>
<%@page import="java.util.Collection"%>
<%@page import="java.util.HashMap"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <title><c:out value="${initParam.pageTitle}"></c:out></title>
        <link rel="stylesheet" type="text/css" href="view/stylesheet/stylesheet.css" />
        <link rel="stylesheet" type="text/css" href="view/javascript/jquery/ui/themes/ui-lightness/jquery-ui-1.8.16.custom.css" />
        <script type="text/javascript" src="view/javascript/jquery/jquery-1.7.1.min.js"></script>
        <script type="text/javascript" src="view/javascript/jquery/ui/jquery-ui-1.8.16.custom.min.js"></script>
        <script type="text/javascript" src="view/javascript/jquery/tabs.js"></script>
        <script type="text/javascript" src="view/javascript/jquery/superfish/js/superfish.js"></script>
        <script type="text/javascript" src="view/javascript/common.js"></script>
    </head>
    <body>
        <div id="container">
            <div id="header">
                <div class="div1">
                    <div class="div2">
                        <img src="view/image/logo.png" title="Yönetim Paneli" />
                    </div>
                </div>
            </div>
            <div id="content">
                <div class="box" style="width: 400px; min-height: 300px; margin-top: 40px; margin-left: auto; margin-right: auto;">
                    <div class="heading">
                        <h1>
                            <img src="view/image/lockscreen.png" alt="" /> Lütfen bilgilerinizi giriniz.
                        </h1>
                    </div>
                    <div class="content" style="min-height: 150px; overflow: hidden;">
                        <c:forEach items="${errorMap}" var="entry">
                            <div class="warning">${entry.value}</div>
                        </c:forEach>
                        <form action="loginservlet" method="post"  id="form">
                            <table style="width: 100%;">
                                <tr>
                                    <td style="text-align: center;" rowspan="4"><img src="view/image/login.png" alt="Lütfen bilgilerinizi giriniz." /></td>
                                </tr>
                                <tr>
                                    <td>Kullanıcı Adı:<br />
                                        <input type="text" name="username" value="Administrator" style="margin-top: 4px;" /> <br /> <br /> 
                                        Parola:<br />
                                        <input type="password" name="password" value="" style="margin-top: 4px;" /> <br /> 
                                        <a href="forgotten.jsp">Parolamı Unuttum</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td>&nbsp;</td>
                                </tr>
                                <tr>
                                    <td style="text-align: right;"><a onclick="$('#form').submit();" class="button">Oturum Aç</a></td>
                                </tr>
                            </table>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <div id="footer">
            <a href="http://www.iplug.com">IPlug</a> &copy; 2009-2013 Tüm Hakları Saklıdır. <br/>
            <c:out value="${initParam.version}"></c:out>
        </div>
    </body>
</html>
